#ifndef __Grid_H__
#define __Grid_H__

#include <GL\glew.h>
#include <GLFW\glfw3.h>
#include <glm\glm.hpp>

#include "PrimitiveObject.h"

class Grid : public PrimitiveObject
{

protected:
   int rowMax, colMax;      
   int index (int i, int j);

   void fill (void);
   void genBuffer (void);
   void freeBuffer (void);

public:
   Grid (int rowMax, int colMax, int structType);
   void init (void);
   void draw (void);   
   ~Grid ();
};

#endif